package com.tgy.service.role;

import com.tgy.dao.role.RoleDao;
import com.tgy.dao.role.RoleDaoImpl;
import com.tgy.entity.Role;
import org.junit.Test;

import java.util.List;

/***
 * @ClassName: RoleServiceImpl
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 17:59 2021/12/10
 * @version : V1.0
 */
public class RoleServiceImpl implements RoleService{
    RoleDao roleDao;

    public RoleServiceImpl() {
        this.roleDao = new RoleDaoImpl();
    }


    @Override
    public List<Role> getRoleList() {
        List<Role> role = roleDao.getRole();
        return role;
    }
    @Test
    public void aa(){

        List<Role> roleList = new RoleServiceImpl().getRoleList();
        System.out.println(roleList.toString());
    }
}
